package com.pingan.haofang.searchcloud.monitor.domain;

import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author EX-SUNBIXIAO001
 * @date 2018/10/24
 * @since 1.0.0
 */
@Entity
@Table(name = "t_dashboard_failed_api_history")
@EntityListeners({AuditingEntityListener.class})
public class DashboardFailedApiHistory {

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;

    /**
     * 请求方式
     */
    @Column(name = "request_method")
    private String requestMethod;
    /**
     * 请求地址
     */
    @Column(name = "url")
    private String url;
    /**
     * 状态码
     */
    @Column(name = "status")
    private String status;
    /**
     * 请求时间
     */
    @Column(name = "request_time")
    private Date requestTime;

    @CreatedDate
    @Column(name = "create_time")
    private Date create_time;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getRequestMethod() {
        return requestMethod;
    }

    public void setRequestMethod(String requestMethod) {
        this.requestMethod = requestMethod;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getRequestTime() {
        return requestTime;
    }

    public void setRequestTime(Date requestTime) {
        this.requestTime = requestTime;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }
}
